package org.spring.boot.rabbitmq.conf;

import org.springframework.amqp.core.Queue;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * @author: eastcom
 * @desc: Rabbit队列配置类
 **/
@Component
public class RabbitQueueConfig {

	@Value("${rabbitmq.queue.cache.sms}")
	private String cacheSms;

	@Value("${rabbitmq.queue.cache.gnms}")
	private String cacheGnms;

	@Value("${rabbitmq.queue.cache.wlan}")
	private String cacheWlan;

	@Bean
	public Queue smsQueue(){
		return new Queue(cacheSms);
	}

	@Bean
	public Queue gnmsQueue(){
		return new Queue(cacheGnms);
	}

	@Bean
	public Queue wlanQueue(){
		return new Queue(cacheWlan);
	}
}
